from django.urls import path
from . import views

app_name = 'order'

urlpatterns = [
    # 订单相关路由
    path('', views.order_list, name='list'),
    path('<int:order_id>/', views.order_detail, name='detail'),
    path('<int:order_id>/pay/', views.pay_order, name='pay'),
    path('<int:order_id>/pay-ajax/', views.pay_order_ajax, name='pay_ajax'),
    path('<int:order_id>/cancel/', views.cancel_order, name='cancel'),
    path('<int:order_id>/complete/', views.complete_order, name='complete'),
    path('<int:order_id>/draw/<int:item_id>/', views.draw_box, name='draw_box'),
    path('<int:order_id>/view-result/<int:item_id>/', views.view_draw_result, name='view_draw_result'),
    # 我的盲盒
    path('my-boxes/', views.my_boxes, name='my_boxes'),
    # 二维码生成
    path('generate_qrcode/', views.generate_qrcode, name='generate_qrcode'),
] 